package com.hzncc.flowable_diboot.payment.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* sap合同收款 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-29
* Copyright © MyCorp
*/
@TableName("mdl_sap_payment_contract")
@Getter @Setter @Accessors(chain = true)
public class SapPaymentContract extends BaseModel {
    private static final long serialVersionUID = 1786974104380296607L;
     /**
     * 租户
     */
     @NotNull(message = "租户不能为空")
     @TableField()
     private String tenantId;

     /**
     * 合同收款ID
     */
     @NotNull(message = "合同收款ID不能为空")
     @Length(max=32, message="合同收款ID长度应小于32")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String paymentContractId;

     /**
     * 采购订单号
     */
     @Length(max=100, message="采购订单号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String contractCode;

     @TableField()
     private String reviewCategory;

     /**
     * sap合同号
     */
     @Length(max=100, message="sap合同号长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String sapContractCode;

     /**
     * 开票金额
     */
     @TableField()
     private BigDecimal invoicedAmount;

     /**
     * 合同金额
     */
     @TableField()
     private BigDecimal totalAmount;

     /**
     * 本次收款金额
     */
     @TableField()
     private BigDecimal currentCollectionAmount;

     /**
     * 已收款金额
     */
     @TableField()
     private BigDecimal receivedAmount;

     /**
     * 未收款金额
     */
     @TableField()
     private BigDecimal unpaidAmount;

     /**
     * 开票日期
     */
     @TableField()
     private LocalDateTime invoicedTime;

     /**
     * 老应收id
     */
     @TableField
     private String oldReceivableId;
}